package com.lyl.label.common.result;

import lombok.Getter;

@Getter
public enum ResultCode {
    OK(200, "ok"),
    FAILED(-1, "failed"),

    URL_NOT_FOUND(404,"请求路径不存在"),
    METHOD_NOT_SUPPORT(405,"请求方式不支持"),

    ILLEGAL_PARAM(300001, "传入参数不合法"),
    DB_EXCEPTION(300002, "数据库异常"),
    UNKNOWN_EXCEPTION(300003, "未知异常"),
    DEMO_SERVICE_EXCEPTION(300003, "demo service 异常"),
    ;

    private int code;

    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
